package cn.stylefeng.guns.modular.business.mapper;


import cn.stylefeng.guns.base.pojo.node.TreeviewNode;
import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.modular.business.entity.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper extends BaseMapper<Category> {


    List<ZTreeNode> tree();

    List<Category> list(@Param("page") Page page, @Param("condition") String condition, @Param("categoryId") String categoryId);

    List<TreeviewNode> treeviewNodes();
}
